package com.sasis.model;
// Generated 2007-8-1 18:07:13 by Hibernate Tools 3.1.0.beta4

import java.sql.Date;
import java.sql.Timestamp;


/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="VIP_SERVICE_CABIN"
 *     
 */

public class VipServiceCabin extends com.sasis.model.BaseObject implements java.io.Serializable {


    // Fields    

    private Integer id;
    private Integer vipServiceSheetId;
    private String cabinServiceContent;
    private String cabinServiceAppeal;
    private String cabinServiceRemark;
    private Integer cabinServiceOperator;
    private Timestamp cabinServiceOperateDate;


    // Constructors

    /** default constructor */
    public VipServiceCabin() {
    }

    
    /** full constructor */
    public VipServiceCabin(Integer vipServiceSheetId, String cabinServiceContent, String cabinServiceAppeal, String cabinServiceRemark, Integer cabinServiceOperator,Timestamp cabinServiceOperateDate) {
        this.vipServiceSheetId = vipServiceSheetId;
        this.cabinServiceContent = cabinServiceContent;
        this.cabinServiceAppeal = cabinServiceAppeal;
        this.cabinServiceRemark = cabinServiceRemark;
        this.cabinServiceOperator = cabinServiceOperator;
        this.cabinServiceOperateDate = cabinServiceOperateDate;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="ID"
     *         
     */

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    /**       
     *      *            @hibernate.property
     *             column="VIP_SERVICE_SHEET_ID"
     *             length="22"
     *         
     */

    public Integer getVipServiceSheetId() {
        return this.vipServiceSheetId;
    }
    
    public void setVipServiceSheetId(Integer vipServiceSheetId) {
        this.vipServiceSheetId = vipServiceSheetId;
    }
    /**       
     *      *            @hibernate.property
     *             column="CABIN_SERVICE_CONTENT"
     *             length="1024"
     *         
     */

    public String getCabinServiceContent() {
        return this.cabinServiceContent;
    }
    
    public void setCabinServiceContent(String cabinServiceContent) {
        this.cabinServiceContent = cabinServiceContent;
    }
    /**       
     *      *            @hibernate.property
     *             column="CABIN_SERVICE_APPEAL"
     *             length="1024"
     *         
     */

    public String getCabinServiceAppeal() {
        return this.cabinServiceAppeal;
    }
    
    public void setCabinServiceAppeal(String cabinServiceAppeal) {
        this.cabinServiceAppeal = cabinServiceAppeal;
    }
    /**       
     *      *            @hibernate.property
     *             column="CABIN_SERVICE_REMARK"
     *             length="1024"
     *         
     */

    public String getCabinServiceRemark() {
        return this.cabinServiceRemark;
    }
    
    public void setCabinServiceRemark(String cabinServiceRemark) {
        this.cabinServiceRemark = cabinServiceRemark;
    }
    /**       
     *      *            @hibernate.property
     *             column="CABIN_SERVICE_OPERATOR"
     *             length="22"
     *         
     */

    public Integer getCabinServiceOperator() {
        return this.cabinServiceOperator;
    }
    
    public void setCabinServiceOperator(Integer cabinServiceOperator) {
        this.cabinServiceOperator = cabinServiceOperator;
    }
    /**       
     *      *            @hibernate.property
     *             column="CABIN_SERVICE_OPERATE_DATE"
     *             length="7"
     *         
     */

    public Timestamp getCabinServiceOperateDate() {
        return this.cabinServiceOperateDate;
    }
    
    public void setCabinServiceOperateDate(Timestamp cabinServiceOperateDate) {
        this.cabinServiceOperateDate = cabinServiceOperateDate;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("vipServiceSheetId").append("='").append(getVipServiceSheetId()).append("' ");			
      buffer.append("cabinServiceContent").append("='").append(getCabinServiceContent()).append("' ");			
      buffer.append("cabinServiceAppeal").append("='").append(getCabinServiceAppeal()).append("' ");			
      buffer.append("cabinServiceRemark").append("='").append(getCabinServiceRemark()).append("' ");			
      buffer.append("cabinServiceOperator").append("='").append(getCabinServiceOperator()).append("' ");			
      buffer.append("cabinServiceOperateDate").append("='").append(getCabinServiceOperateDate()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof VipServiceCabin) ) return false;
		 VipServiceCabin castOther = ( VipServiceCabin ) other; 
         
		 return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )
 && ( (this.getVipServiceSheetId()==castOther.getVipServiceSheetId()) || ( this.getVipServiceSheetId()!=null && castOther.getVipServiceSheetId()!=null && this.getVipServiceSheetId().equals(castOther.getVipServiceSheetId()) ) )
 && ( (this.getCabinServiceContent()==castOther.getCabinServiceContent()) || ( this.getCabinServiceContent()!=null && castOther.getCabinServiceContent()!=null && this.getCabinServiceContent().equals(castOther.getCabinServiceContent()) ) )
 && ( (this.getCabinServiceAppeal()==castOther.getCabinServiceAppeal()) || ( this.getCabinServiceAppeal()!=null && castOther.getCabinServiceAppeal()!=null && this.getCabinServiceAppeal().equals(castOther.getCabinServiceAppeal()) ) )
 && ( (this.getCabinServiceRemark()==castOther.getCabinServiceRemark()) || ( this.getCabinServiceRemark()!=null && castOther.getCabinServiceRemark()!=null && this.getCabinServiceRemark().equals(castOther.getCabinServiceRemark()) ) )
 && ( (this.getCabinServiceOperator()==castOther.getCabinServiceOperator()) || ( this.getCabinServiceOperator()!=null && castOther.getCabinServiceOperator()!=null && this.getCabinServiceOperator().equals(castOther.getCabinServiceOperator()) ) )
 && ( (this.getCabinServiceOperateDate()==castOther.getCabinServiceOperateDate()) || ( this.getCabinServiceOperateDate()!=null && castOther.getCabinServiceOperateDate()!=null && this.getCabinServiceOperateDate().equals(castOther.getCabinServiceOperateDate()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );
         result = 37 * result + ( getVipServiceSheetId() == null ? 0 : this.getVipServiceSheetId().hashCode() );
         result = 37 * result + ( getCabinServiceContent() == null ? 0 : this.getCabinServiceContent().hashCode() );
         result = 37 * result + ( getCabinServiceAppeal() == null ? 0 : this.getCabinServiceAppeal().hashCode() );
         result = 37 * result + ( getCabinServiceRemark() == null ? 0 : this.getCabinServiceRemark().hashCode() );
         result = 37 * result + ( getCabinServiceOperator() == null ? 0 : this.getCabinServiceOperator().hashCode() );
         result = 37 * result + ( getCabinServiceOperateDate() == null ? 0 : this.getCabinServiceOperateDate().hashCode() );
         return result;
   }   





}
